import Factory.AdminFactory;
import Factory.NormalFactory;
import Person.User;
import Proxy.ProxyUser;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Person.User: 38917
 * Date: 2025-04-02
 * Time: 09:33
 */
public class Test {
    public static void main(String[] args) {
        AdminFactory adminfactory = new AdminFactory();
        NormalFactory normalfactory = new NormalFactory();
        //工厂
        User admin = adminfactory.createUser("九转苍翎", 18);
        //工厂
        User normal = normalfactory.createUser("九转", 18);
        //代理
        ProxyUser proxyUserAdmin = new ProxyUser(admin);
        ProxyUser proxyUserNormal = new ProxyUser(normal);
        proxyUserAdmin.start("三国演义");
        proxyUserNormal.start("三国演义");
    }
}